.class Lcom/waiqin365/lightapp/dailyreport/q;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/text/TextWatcher;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/q;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 4

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/q;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;->a(Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/q;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;->b(Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/q;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/a/b;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/dailyreport/a/b;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/q;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;->b(Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/q;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;->c(Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/q;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;->d(Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;)Landroid/widget/EditText;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v1, v2, v3}, Lcom/waiqin365/lightapp/dailyreport/a/b;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    :cond_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/q;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;->e(Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;)J

    move-result-wide v2

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x1388

    cmp-long v0, v0, v2

    if-lez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/q;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;->f(Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;)V

    :cond_1
    return-void

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/q;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;->a(Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    goto :goto_0
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0

    return-void
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0

    return-void
.end method
